<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>历史预警消息</title>
    <jsp:include page="css.jsp"/>
    <jsp:include page="js.jsp"/>
    <style>
        .mainContent {
            max-height: 80vh;
            overflow-y: scroll;
        }

        .scrollable-content {
            margin-top: 0;
            padding-top: 0;
        }

        .data-cards {
            padding-top: 10px;
        }

        .tabs{
            margin-bottom: 10px;
        }

        .page-input {
            height: 40px;
            padding: 0;
            /* 清除父容器内边距 */
            color: #333;
            background: rgba(255, 255, 255, 0.95);
            border-radius: 8px;
        }

        .page-input input {
            /* 宽度填充 */
            width: 100%;
            /* 高度填充 */
            height: 100%;
            /* 包含内边距 */
            box-sizing: border-box;
            /* 可选的文本内边距 */
            padding: 0 12px;
            /* 移除聚焦轮廓 */
            outline: none;
            /* 透明背景 */
            background: transparent;
        }
    </style>
</head>
<body>
<!-- 新增固定头部区域 -->
<div class="fixed-header">
    <section class="title-bar">
        <div class="title-content">
            <div class="title-text">环保在线预警查询系统</div>
        </div>
    </section>

    <div class="tabs">
        <div class="tab active" id="tab2011" data-type="realtime" onclick="changeDataType(2011)">实时预警</div>
        <div class="tab" id="tab2051" data-type="minute" onclick="changeDataType(2051)">分钟预警</div>
        <div class="tab" id="tab2061" data-type="hour" onclick="changeDataType(2061)">小时预警</div>
        <div class="tab" id="tab2031" data-type="day" onclick="changeDataType(2031)">日均预警</div>
    </div>
    <div class="page-input">
        <input type="text" placeholder="关键词搜索" maxlength="30" id="selectItem" />
    </div>
</div>

<!-- 滚动内容区域 -->
<div class="scrollable-content">
    <div class="data-cards mainContent" id="messageDiv"></div>
</div>

<input type="hidden" id="hiddenUserId" value="${wxUserId}"/>

</body>
</html>
<script src="static/wechat/project/js/message.js"></script>